Chris Pollett >
Old Classses >
CS255 |
HW#4 --- last modified January 28 2019 19:27:07..Due date: Apr 23
Files to be submitted: Purpose: Related Course Outcomes: To experiment with some fo the number theoretic algorithms we have discussed. The main course outcomes covered by this assignment are: CLO6 -- Analyze or code a number theoretic algorithm Specification: This homework will consist of two parts, a written part and a coding part. Both parts will be submitted in the Hw4.zip file. The written part should be in a file Hw4.pdf. For the written part of the homework you should write solutions for the following questions. In what you turn in, make sure to write the names and student ids for each group member. For each problem, first copy and paste the question, then write your solution to it beneath it.
For the coding part of the homework, I want you to code either a Java or python implementation of the Miller Rabin algorithm. I will run your program from the command line using the format: java MillerRabin some_long_binary_string num_trials or python MillerRabin.py some_long_binary_string num_trials For example, java MillerRabin 11101110100101 10 On which input, your program should either output "Probably Prime" if it passes all the trials, or "Composite" if it does not. In this particular, case the number is prime, so it should output "Probably Prime". Point Breakdown
|